package com.mybatis.constant;

/**
 * @desc: 数据库连接信息常量类
 * @projectName: mybatis-generator-parent
 * @author: xhs
 * @date: 2025-06-10 周二 22:02
 */
public class DataSourceConstants {

    /**
     * mysql
     */
    public static final String MYSQL = "mysql";

    /**
     * mysql Driver
     */
    public static final String MYSQL_DRIVER = "com.mysql.cj.jdbc.Driver";

    /**
     * mysql url前缀
     */
    public static final String MYSQL_URL = "jdbc:mysql://";

    /**
     * mysql 查询所有表的语句
     */
    public static final String MYSQL_TABLES = "SHOW TABLES";

    /**
     * oracle
     */
    public static final String ORACLE = "oracle";

    /**
     * oracle Driver
     */
    public static final String ORACLE_DRIVER = "oracle.jdbc.OracleDriver";

    /**
     * oracle url前缀
     */
    public static final String ORACLE_URL = "jdbc:oracle:thin:@";

    /**
     * oracle 查询所有表的语句
     */
    public static final String ORACLE_TABLES = "SELECT table_name FROM user_tables";

    /**
     * oracle 查询所有表的语句
     */
    public static final String ORACLE_TABLE_NAME = "TABLE_NAME";
}
